﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    [SqlSugar.SugarTable("corecmsfoodunit")]
    public class corecmsfoodunit
    {
        /// <summary>
        /// 单位Id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "uomId", IsPrimaryKey = true)]
        public long uomId { get; set; }

        /// <summary>
        /// 商户号
        /// </summary>
        [SugarColumn(ColumnName = "tenantId", IsNullable = true)]
        public int tenantId { get; set; }

        /// <summary>
        /// 单位编码
        /// </summary>
        [SugarColumn(ColumnName = "uomCode", IsNullable = true)]
        public string uomCode { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        [SugarColumn(ColumnName = "uomName", IsNullable = true)]
        public string uomName { get; set; }

        /// <summary>
        /// 换算方式 0 固定换算1浮动换算
        /// </summary>
        [SugarColumn(ColumnName = "converWay", IsNullable = true)]
        public int? converWay { get; set; }

        /// <summary>
        /// 换算率
        /// </summary>
        [SugarColumn(ColumnName = "converRate", IsNullable = true)]
        public decimal? converRate { get; set; }

        /// <summary>
        /// 是否默认 0 是 1 否
        /// </summary>
        [SugarColumn(ColumnName = "canDefault", IsNullable = true)]
        public int? canDefault { get; set; }

        /// <summary>
        /// 是否删除 0 未删除 1 已删除
        /// </summary>
        [SugarColumn(ColumnName = "delFlag", IsNullable = true)]
        public int? delFlag { get; set; }

        /// <summary>
        /// 是否称重
        /// </summary>
        [SugarColumn(ColumnName = "stand", IsNullable = true)]
        public int? stand { get; set; }

        /// <summary>
        /// 是否有效 0 有效 1失效
        /// </summary>
        [SugarColumn(ColumnName = "enable", IsNullable = true)]
        public int? enable { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "createTime", IsNullable = true)]
        public DateTime? createTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updateTime", IsNullable = true)]
        public DateTime? updateTime { get; set; }

    }
}
